{{define "infoCollection/pastMedicalHistory_xzyc.html"}}
<div class="box box-info" style="box-shadow: none;margin-bottom: 0;">
    <div class="box-header with-border">
        <h3 class="box-title">血脂异常</h3>
    </div>
    <div class="box-body">
        <div class="form-group">
            <label class="control-label col-sm-3">
                是否有血脂异常:
            </label>
            <div class="radio col-sm-9">
                <input type="radio" name="xzyc" value="无" class="minimal" checked>&nbsp;&nbsp;无
                <input type="radio" name="xzyc" value="有" class="minimal">&nbsp;&nbsp;有
            </div>
        </div>
        <div class="form-group" id="xzyc_shouciquezhenshijian_div" style="display: none;">
            <label class="control-label col-sm-3"><span
                    style="color: red;font-weight: bold;">血脂异常确诊时间:</span></label>
            <div class="col-sm-3"><input class="form-control" type="text" id="xzyc_shouciquezhenshijian"
                                         name="xzyc_shouciquezhenshijian" placeholder="XXXX年"/>
            </div>
            <br>
            <br>

            <label class="control-label col-sm-3"><span style="color: red;font-weight: bold;">血脂异常类型:</span></label>
            <div class="checkbox col-sm-9">
                <input type="checkbox" name="xzyc_leixing" value="高胆固醇" class="minimal">&nbsp;&nbsp;高胆固醇&nbsp;
                <input type="checkbox" name="xzyc_leixing" value="高甘油三酯" class="minimal">&nbsp;&nbsp;高甘油三酯&nbsp;
                <input type="checkbox" name="xzyc_leixing" value="高LDL-C" class="minimal">&nbsp;&nbsp;高LDL-C&nbsp;
                <input type="checkbox" name="xzyc_leixing" value="低LDL-C" class="minimal">&nbsp;&nbsp;低LDL-C&nbsp;
                <input type="checkbox" name="xzyc_leixing" value="不详" class="minimal">&nbsp;&nbsp;不详&nbsp;
            </div>
            <br>
            <br>

            <label class="control-label col-sm-3"><span
                    style="color: red;font-weight: bold;">是否服用降脂药:</span></label>
            <div class="radio col-sm-9">
                <input type="radio" name="xzyc_is_fuyao" value="否" class="minimal">&nbsp;&nbsp;否&nbsp;
                <input type="radio" name="xzyc_is_fuyao" value="是" class="minimal">&nbsp;&nbsp;是&nbsp;
            </div>
        </div>
        <div class="form-group" id="xzyc_yongyao_pinzhong" style="display: none;">
            <label class="control-label col-sm-3"><span
                    style="color: red;font-weight: bold;">用药品种:</span></label>
            <div class="checkbox col-sm-9">
                <input type="checkbox" name="xzyc_yongyao_pinzhong" value="他汀类" class="minimal">&nbsp;&nbsp;他汀类&nbsp;
                <input type="checkbox" name="xzyc_yongyao_pinzhong" value="贝特类" class="minimal">&nbsp;&nbsp;贝特类&nbsp;
                <input type="checkbox" name="xzyc_yongyao_pinzhong" value="其他" class="minimal">&nbsp;&nbsp;其他&nbsp;
            </div>
        </div>

        <div class="form-group" >

        </div>

    </div>
</div>
        <script>
            $(function () {
                gxzDeal();
            });


            function gxzDeal() {
                $("input:radio[name='xzyc']").on('ifChanged', function (event) {
                    if ($(this).is(':checked')) {
                        if ($(this).val() == "有") {
                            $("#xzyc_shouciquezhenshijian_div").show();
                        } else {
                            $("#xzyc_shouciquezhenshijian_div").hide();
                            $("#xzyc_yongyao_pinzhong").hide();
                            $("input:radio[name='xzyc_is_fuyao']").iCheck('uncheck');
                            $("input:checkbox[name='xzyc_yongyao_pinzhong']").iCheck('uncheck');
                            $("input:checkbox[name='xzyc_leixing']").iCheck('uncheck');
                            $("#xzyc_shouciquezhenshijian").val("");
                        }
                    }
                });
                $("input:radio[name='xzyc_is_fuyao']").on('ifChanged', function (event) {
                    if ($(this).is(':checked')) {
                        if ($(this).val() == "是") {
                            $("#xzyc_yongyao_pinzhong").show();
                        } else {
                            $("#xzyc_yongyao_pinzhong").hide();
                            $("input:checkbox[name='xzyc_yongyao_pinzhong']").iCheck('uncheck');
                        }
                    }
                });
            }
        </script>
{{end}}